
// 树节点结构
export interface PermissionInfo {
    id: number
    pid: number
    name: string
    type: PermissionType
    code: string
    childPermission?: PermissionInfo[]
    isBan: boolean
    sort: number
}

// 权限类型
export enum PermissionType {
    // 目录
    // content = 0,
    // 菜单
    menu = 1,
    // 权限
    permission = 2
}

// 角色结构
export interface RoleInfo {
    id: number
    name: string
    code: string
    isBan: boolean
    description: string
    sort: number
}